import createAxios from '/@/utils/axios'

export function shippingDocuments(method: 'post', params: object = {}) {
    return createAxios({
        url: '/order/orderDocument/shippingDocuments',
        data: params,
        method: method,
    })
}

export function exportExcel(method: 'post', params: object = {}) {
    return createAxios({
        url: '/order/orderDocument/export',
        data: params,
        responseType: "blob",
        method: method,
    })
}

export function markerOrder(method: 'post', params: object = {}) {
    return createAxios({
        url: '/order/orderDocument/markerOrderDoc',
        data: params,
        method: method,
    })
}

export function getDetail(params: object = {}) {
    return createAxios({
        url: '/order/OrderDocument/getLogInfo',
        data: params,
        method: 'post',
    })
}

export function getBactchList() {
    return createAxios({
        url: '/order/orderDocument/getBactchList',
        method: 'post'
    })
}

export function getBatchLog(params: Object = {}) {
    return createAxios({
        url: '/order/orderDocument/getBatchLog',
        method: 'post',
        data: params
    })
}

export function exportLog(params: object = {}) {
    return createAxios({
        url: '/order/orderDocument/exportLog',
        data: params,
        responseType: "blob",
        method: 'post'
    })
}